The object has already been closed (Error 40046)

You have attempted to call the Close method on an object that has already been closed.

To avoid this problem, do not use the Close method on an object that has already been closed.